import { createRouter, createWebHistory } from 'vue-router'
import setupPermission, { resetRouter } from "./permission"
import { ConstRoutes } from './const-routes';

const router = createRouter({
    history: createWebHistory(),
    routes: ConstRoutes
});

export {
    router,
    resetRouter,
    setupPermission
}

